import Vue from "vue"
import Vuex from "vuex"
import state from "./states.js"
import mutations from "./mutations.js"
import getters from "./getters.js"
import actions from "./actions.js"

// console.log(this.$store.state.name)
// this.$store.state.name
// this.$store.getters.getName
// this.$store.commit("setName",'asdasdasddasd')
// this.$store.dispatch(“setName”,data)

Vue.use(Vuex)
export default new Vuex.Store({
	state,
	getters,
	mutations,
	actions
})